package com.javabasic.oop;

public class Unit34Overload extends Toturial {
	public static void main(String[] args) {
		Unit34Overload u = new Unit34Overload();
		
		System.out.println(u.add(13f, 35f));
		System.out.println(u.add(4, 5));
		System.out.println(u.add("a ", "b"));
	}
	
	public int add(int a, int b) {
		return a + b;
	}
	
	float add(float a, float b) {
		return a + b;
	}
}

class Toturial {
	public String add(String str1, String str2) {
		return str1 + str2;
	}
}
